// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '撒户卡消毒列表',
        name: 'PorterWorkDetail',
        url: "/PorterWorkDetail/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PorterId":"","WardAreaId":[],"WardId":[],"BedId":[],"ReplaceBedSheet":"","ReplaceBedding":"","Disinfect":"","Emit":"","ReplaceMattress":"","OutDisinfect":"","WorkTime":""};
    const editFormOptions = [[{"title":"护工id","field":"PorterId","type":"number"}],
                              [{"dataKey":"病区编号","data":[],"title":"病区id","field":"WardAreaId","type":"selectList"}],
                              [{"dataKey":"房间号","data":[],"title":"病房id","field":"WardId","type":"selectList"}],
                              [{"dataKey":"床位编号","data":[],"title":"床位id","field":"BedId","type":"selectList"}],
                              [{"dataKey":"更换床单","data":[],"title":"更换床单","field":"ReplaceBedSheet","type":"radio"}],
                              [{"dataKey":"更换床单","data":[],"title":"更换被褥","field":"ReplaceBedding","type":"radio"}],
                              [{"dataKey":"更换床单","data":[],"title":"消毒液擦拭床头柜","field":"Disinfect","type":"radio"}],
                              [{"dataKey":"更换床单","data":[],"title":"枕头紫外线照射","field":"Emit","type":"radio"}],
                              [{"dataKey":"更换床单","data":[],"title":"更换床垫","field":"ReplaceMattress","type":"radio"}],
                              [{"dataKey":"更换床单","data":[],"title":"出院消毒","field":"OutDisinfect","type":"radio"}],
                              [{"title":"时间","required":true,"field":"WorkTime","type":"datetime"}]];
    const searchFormFields = {"WardAreaId":[],"WardId":[],"BedId":[]};
    const searchFormOptions = [[{"dataKey":"病区编号","data":[],"title":"病区id","field":"WardAreaId","type":"selectList"},{"dataKey":"房间号","data":[],"title":"病房id","field":"WardId","type":"selectList"},{"dataKey":"床位编号","data":[],"title":"床位id","field":"BedId","type":"selectList"}]];
    const columns = [{field:'Id',title:'主键id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PorterId',title:'护工id',type:'int',width:110,align:'left'},
                       {field:'WardAreaId',title:'病区id',type:'int',bind:{ key:'病区编号',data:[]},width:110,align:'left'},
                       {field:'WardId',title:'病房id',type:'int',bind:{ key:'房间号',data:[]},width:110,align:'left'},
                       {field:'BedId',title:'床位id',type:'int',bind:{ key:'床位编号',data:[]},width:110,align:'left'},
                       {field:'ReplaceBedSheet',title:'更换床单',type:'int',bind:{ key:'更换床单',data:[]},width:110,align:'left'},
                       {field:'ReplaceBedding',title:'更换被褥',type:'int',bind:{ key:'更换床单',data:[]},width:110,align:'left'},
                       {field:'Disinfect',title:'消毒液擦拭床头柜',type:'int',bind:{ key:'更换床单',data:[]},width:110,align:'left'},
                       {field:'Emit',title:'枕头紫外线照射',type:'int',bind:{ key:'更换床单',data:[]},width:110,align:'left'},
                       {field:'ReplaceMattress',title:'更换床垫',type:'int',bind:{ key:'更换床单',data:[]},width:110,align:'left'},
                       {field:'OutDisinfect',title:'出院消毒',type:'int',bind:{ key:'更换床单',data:[]},width:110,align:'left'},
                       {field:'WorkTime',title:'时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}